<template>
    <div class="lyaout">
        <!-- 嵌套路由父组件 大的布局 -->
        <el-container>
            <el-header>
                <Header></Header>
            </el-header>
            <el-container>
                <el-aside width="200px">
                    <Aside></Aside>
                </el-aside>
                <el-main>
                    <!-- <Main></Main> -->
                    <!-- 会变的组件 -->
                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script>
import Aside from '../components/Aaide.vue'
import Header from '../components/Header.vue'
import Main from '../components/Main.vue'
export default {
    components: {
        Aside,
        Header,
        Main
    }
}
</script>

<style>
.el-header {
    background-color: rgb(84, 92, 100);
    color: #333;
    /* text-align: center; */
    line-height: 60px;
}

.el-aside {
    background-color: rgb(84, 92, 100);
    color: #333;
}

.el-main {
    background-color: #E9EEF3;
    color: #333;
}

.lyaout .el-container {
    height: 100vh;
}
</style>